<template>
	<div class="el-box">
		<TopNav></TopNav>
		<div class="user-bg">
			<el-row>
				<el-col :span="3">
					<UserNav @userMenuChange = userMunuChangeListenner></UserNav>
				</el-col>
				<el-col :span="21" align="left">
					<router-view />
					<!-- <div v-if="curMenuIndex=='home'"><user-home></user-home></div>
					<div v-else-if="curMenuIndex=='order'"><user-order></user-order></div>
					<div v-else-if="curMenuIndex=='invoice'"><user-invoice></user-invoice></div>
					<div v-else-if="curMenuIndex=='collect'"><user-collect></user-collect></div>
					<div v-else-if="curMenuIndex=='cart'"><user-cart></user-cart></div> -->
				</el-col>
			</el-row>
		</div>
	</div>
</template>

<script src="./index.js"></script>
<style lang="scss" src="./index.scss"></style>
<!-- 只在当前页面起作用 -->
<!-- <style lang="scss" scoped src="./index.scoped.scss"></style> -->
<!-- 全面页面起作用，先不作推荐 -->
